package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author jiyonghui
 * @className RefundStatusEnum
 * @description
 * @date 2020/1/13   16:02
 */
@Getter
public enum RefundStatusEnum {
    // 出库状态
    UNREFUND("1", "enum.refundStatus.name.unrefund", "unrefund"),
    PARTIAL("2", "enum.refundStatus.name.partial", "partial"),
    REFUND("3", "enum.refundStatus.name.refund", "refund"),
    CLOSED("4","enum.refundStatus.name.closed","closed")
    ;

    private String code;
    private String name;
    private String attr;

    RefundStatusEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
